﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model
{
    [Table("Member")]
    public class Member
    {
        /// <summary>
        /// 会员主键Id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 会员手机号
        /// </summary>
        public string Phopne { get; set; }
        /// <summary>
        /// 会员身份证号
        /// </summary>
        public string Card { get; set; }
        /// <summary>
        /// 会员的生日
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 会员的性别
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 会员状态
        /// </summary>
        public int State { get; set; } = 1;
        /// <summary>
        /// 会员密码
        /// </summary>
        public string Pwd { get; set; }
        /// <summary>
        /// 会员余额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 会员积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 添加会员时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改会员时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 会员是否删除
        /// </summary>
        public bool IsDeleted { get; set; }= false;

        public int LevelId { get; set; }

    }
}
